import React from "react"
import { BrowserRouter, Routes, Route } from "react-router-dom"
import App from "./App"



import FundsrecoverymanagementList from "./components/Fundsrecoverymanagements/FundsrecoverymanagementList"
import AddFundsrecovery from './components/Fundsrecoverymanagements/AddFundsrecovery';
import FundDetails from './components/Fundsrecoverymanagements/FundDetails';
import UpdateFunds from './components/Fundsrecoverymanagements/UpdataFunds';

import RepaymentScheduleList from"./components/RepaymentSchedule/RepaymentScheduleList"
import AddRepaymentSchedule from"./components/RepaymentSchedule/AddRepaymentSchedule"
import UpdateRepaymentSchedule from"./components/RepaymentSchedule/UpdateRepaymentSchedule"
import RepaymentScheduleDetails from "./components/RepaymentSchedule/RepaymentScheduleDetails";

import ExpenseManagement from "./components/Expense/ExpenseManagement"

import AddRefund from "./components/Refunds/AddRefund"
import RefundList from "./components/Refunds/RefundList"
import UpdateRefund from "./components/Refunds/UpdateRefund"
import RefundDetails from "./components/Refunds/RefundDetails"

import ReimburseManagement from "./components/Reimburse/ReimburseManagement"

import AddCollection from "./components/Collections/AddCollection"
import CollectionList from "./components/Collections/CollectionList"
import UpdateCollection from "./components/Collections/UpdateCollection"
import CollectionDetail from "./components/Collections/CollectionDetail"

import ReceiptManagement from "./components/Receipt/ReceiptManagement"



const BaseRouter = () => {
  return (
    <BrowserRouter>
      <Routes>
        <Route path="/" element={<App />}>


          <Route path="fundsrecoverymanagement" element={<FundsrecoverymanagementList/>}></Route>
          <Route path="addfundsrecovery" element={<AddFundsrecovery/>}></Route>
          <Route path="fundsrecoverymanagement/fundDetails/:id" element={<FundDetails/>}></Route>
          <Route path="fundsrecoverymanagement/updatefunds/:id" element={<UpdateFunds/>}></Route>


          <Route path="repaymentschedulelist" element={<RepaymentScheduleList/>}></Route>
          <Route path="AddRepaymentSchedule" element={<AddRepaymentSchedule/>}></Route>
          <Route  path="repaymentschedulelist/details/:id" element={<RepaymentScheduleDetails/>}> </Route>
          <Route  path="repaymentschedulelist/updaterepaymentschedule/:id" element={<UpdateRepaymentSchedule/>}> </Route>

          <Route path="expensemanagement" element={<ExpenseManagement/>}></Route>

          <Route path="refundlist" element={<RefundList />}></Route>
          <Route path="addrefund" element={<AddRefund />}></Route>
          {/* <Route path="refunddetail/:id" element={<RefundDetails />}></Route> */}
          <Route path="/refunddetail/:id" element={<RefundDetails />}></Route>
          <Route path="refundlist/updaterefund/:id" element={<UpdateRefund />}></Route>

          <Route path="reimbursemanagement" element={<ReimburseManagement/>}></Route>
          <Route path="collectionlist" element={<CollectionList />}></Route>
          <Route path="addcollection" element={<AddCollection />}></Route>
          <Route path="collectionlist/updatecollection/:id" element={<UpdateCollection />}></Route>

          <Route path="/collectiondetail/:id" element={<CollectionDetail />} />

           <Route path="receiptmanagement" element={<ReceiptManagement/>}></Route>

        </Route>
      </Routes>
    </BrowserRouter>
  )
}

export default BaseRouter